﻿@model FollowUpNetwork.Models.CameraLeaderboard
@{
    ViewBag.Title = "数据增加";
}

<h2>相机排行榜数据增加</h2>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()

    <div class="form-horizontal">

        <hr />
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })
        <div class="form-group">
            <p class="control-label col-md-2">排名</p>
            <div class="col-md-10">
                @Html.EditorFor(model => model.CameraRanking, new { htmlAttributes = new { @class = "form-control" } })
                @Html.ValidationMessageFor(model => model.CameraRanking, "", new { @class = "text-danger" })
            </div>
        </div>

        <div class="form-group">
            <p class="control-label col-md-2">型号</p>
            <div class="col-md-10">
                @Html.EditorFor(model => model.CameraType, new { htmlAttributes = new { @class = "form-control" } })
                @Html.ValidationMessageFor(model => model.CameraType, "", new { @class = "text-danger" })
            </div>
        </div>

        <div class="form-group">
            <p class="control-label col-md-2">价格</p>
            <div class="col-md-10">
                @Html.EditorFor(model => model.CameraPrice, new { htmlAttributes = new { @class = "form-control" } })
                @Html.ValidationMessageFor(model => model.CameraPrice, "", new { @class = "text-danger" })
            </div>
        </div>

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="添加" class="btn btn-default" />
            </div>
        </div>
    </div>
}


<div>
    @Html.ActionLink("返回排行榜管理页面", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}

